package com.whxd.smarthome.api.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.whxd.smarthome.api.entity.Version;

/**
 * @author 张世鹏
 *
 */
public interface VersionDao extends PagingAndSortingRepository<Version, Long> {

	Version findByClient(String client);

//	@Query("select version from Version version where version.client='android'")
//	Version findAndroidVersion();
//
//	@Query("select version from Version version where version.client='ios'")
//	Version findIOSVersion();
}
